import org.hibernate.Transaction;

import com.goodle.dao.AbstractLogin;
import com.goodle.dao.HibernateSessionFactory;
import com.goodle.dao.Login;
import com.goodle.dao.LoginDAO;


public class Test {
	public static void main(String[] args) {
		Transaction tran=HibernateSessionFactory.getSession().beginTransaction();
		

		
		Login t1=new Login();
		t1.setA("3");
		t1.setB(new Long(1));
		LoginDAO t2=new LoginDAO();
		t2.save(t1);
		tran.commit();
	}
}
